<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<%@ taglib uri="/WEB-INF/tlds/att.tld" prefix="att"%>
<html>
<head>
	<meta name="decorator" content="moduleEdit" />
	<script type="text/javascript">
		$(document).ready(function() {
			$("#brandCname").focus();
			$("#brandForm").validate({
				submitHandler: function(form){
					Oosp_Loading('正在提交，请稍等...');
					form.submit();
				},
				errorContainer: "#messageBox",
				errorPlacement: function(error, element) {
					$("#messageBox").text("输入有误，请先更正。");
					if (element.is(":checkbox")||element.is(":radio")||element.parent().is(".input-append")){
						error.appendTo(element.parent().parent());
					} else {
						error.insertAfter(element);
					}
				}
			});
		});
	</script>
</head>
<body>
<div class="Report_f">
           <div class="Report_f_1">
                <div class="Report_f_title_1">品牌名称维护</div>
                <ul class="nav nav-tabs Report_f_title_2">
                    <li><a href="#label_1" data-toggle="tab">基本信息</a></li>
                  </ul>
<!-- Tab panes -->
                  <div class="tab-content Report_f_title_3">
                    <div class="tab-pane active" id="label_1">
                         <div class="Report_f_title_4">
                              <form:form id="brandForm" modelAttribute="brand" action="${contextPath}/biz/brand/brand/save" method="post" class="form-inline" role="form">
					             <form:hidden path="id"/>
								 <tags:message content="${message}"/>
		             		<div class="f_2">	
							 <div class="form-group col-sm-6">
								<label for="brandCname" class="col-sm-3 control-label f_4">品牌中文名:</label>
								<div class="col-sm-9 f_6">
									<form:input id="brandCname"  path="brandCname" placeholder="请输入品牌中文名"  maxlength="150"  class="f_5 required"/>
								</div>
							</div>
							 <div class="form-group col-sm-6">
								<label for="brandEname" class="col-sm-3 control-label f_4">品牌英文名:</label>
								<div class="col-sm-9 f_6">
									<form:input id="brandEname" path="brandEname" placeholder="请输入品牌英文名" maxlength="100"  class="f_5"/>
								</div>
							</div>
						</div>
		             <div class="f_12">
                                     <button type="button" class="btn btn-danger btn_5 btn_right" onclick="history.go(-1)">返&nbsp;回</button>
                                     <button type="submit" class="btn btn-success btn_5 btn_right">保&nbsp;存</button>
                                </div>
                           </form:form>
                      </div>
                 </div>
	  </div>
	</div>	
</div>   	
</body>
</html>